package producer_consumer;

public class Test {
	public static void main(String[] args) {
		BaoZiSpace bzs = new BaoZiSpace(5);
		
		Producer pdc = new Producer(bzs);
		Consumer c = new Consumer(bzs);
		/*Consumer d=new Consumer(bzs);
		new Thread(d).start();*/
		
		Thread t1 = new Thread(pdc);
		Thread t2 = new Thread(c);
		t1.start();
		t2.start();
	}
}
